PVE has issues creating the CSR for IP addresses
TOC:
cat > /etc/systemd/system/acme.sh.service << EOF
# /etc/systemd/system/acme.sh.service
[Unit]
Description=Renew certificates acquired via acme.sh
After=network.target network-online.target nss-lookup.target
Wants=network-online.target nss-lookup.target
Documentation=https://github.com/acmesh-official/acme.sh/wiki
[Service]
# If the version of systemd is 240 or above, then uncommenting Type=simple and commenting out Type=exec
#Type=exec
Type=simple
# The --home argument should be the location of the acme.sh configuration directory.
ExecStart=/usr/bin/acme.sh --cron --home /etc/acme.sh --log /etc/acme.sh/acme.log --days 6
# acme.sh returns 2 when renewal is skipped (i.e. certs up to date)
SuccessExitStatus=0 2
Restart=on-failure
# lock down system access
# prohibit any operating system and configuration modification
ProtectSystem=strict
# create separate, new (and empty) /tmp and /var/tmp filesystems
PrivateTmp=true
# make /home directories inaccessible
ProtectHome=true
# turns off access to physical devices (/dev/...)
PrivateDevices=true
# make kernel settings (procfs and sysfs) read-only
ProtectKernelTunables=true
# make cgroups /sys/fs/cgroup read-only
ProtectControlGroups=true
# allow writing of acme directory
ReadWritePaths=/etc/acme.sh/
ReadWritePaths=/etc/pve/local/
# depending on log and entrypoint configuration, you may need to allow writing to other paths, too
EOFsystemctl daemon-reloadsystemctl enable --now acme.sh.timerHow to properly remove acme certs and account
pvenode acme cert revokepvenode acme account deactivate/etc/pve/local/config (couldn’t
find a proper command to do it)
nano /etc/pve/local/configLast modified: Thu Jan 22 08:59:37 2026